<?php
$id = $_POST['id'];

$conn = new mysqli("localhost", "root", "", "simple_weibo");
$conn->query("set names 'utf8'");
$sql = "delete from weibo_comment where cm_id=".$id;
$res = $conn->query($sql);
$sqlsql = "delete from weibo_kidcomment where weibo_kidcomment.cm_id=".$id;
$resres = $conn->query($sqlsql);

if($res){
    echo "成功删除评论";
}else{
    echo "删除评论失败";
}